-- GENERATED SPELL FOR [Sister of Torment] --


function spell0_24697(pUnit, Event) --@Deadly Embrace,n/a--
pUnit:FullCastSpellOnTarget(44547,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24697', 7500, 1)
end

function spell1_24697(pUnit, Event) --@Lash of Pain,n/a--
pUnit:FullCastSpellOnTarget(44640,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24697', 611, 1)
end

function Sorts_24697(pUnit, Event)
local choix_sorts_24697 = math.random(0, 1)
if choix_sorts_24697 == 0 then
pUnit:RegisterEvent('spell0_24697', 1, 1)
end
if choix_sorts_24697 == 1 then
pUnit:RegisterEvent('spell1_24697', 1, 1)
end
end

function mob24697_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24697', math.random(1500, 3000), 1)
end

function mob24697_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24697_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24697_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24697, 1, 'mob24697_Action')
RegisterUnitEvent(24697, 2, 'mob24697_Leave')
RegisterUnitEvent(24697, 3, 'mob24697_Kill')
RegisterUnitEvent(24697, 4, 'mob24697_Die')
